package com.hgw.Demo02CommandPattern.Exercises17_10_3;

/**
 * Data time:2021/12/16 22:03
 * StudentID:2019112118
 * Author:hgw
 * Description: 开关按钮
 */
public class SwitchButton {
    private Command command;

    public void setCommand(Command command) {
        this.command = command;
    }

    public void click() {
        command.execute();
    }
}
